<?php
class HTML_players
{
function showPlayers($rows, $option)
{
?><table><?php
foreach($rows as $row)
{
$link = 'index.php?option=' .
$option . '&id=' . $row->id . '&task=view';
echo
'<tr>
<td>
<a href="' . $link . '">' . $row->firstName . '</a>
</td>
</tr>';
}
?></table><?php
}

function showPlayer($row, $option)
{
?>
<p class="contentheading"><?php echo $row->name; ?></p>
<p class="createdate"><?php echo JHTML::Date
($row->review_date); ?></p>
<p><?php echo $row->quicktake; ?></p>
<p><strong>FirstName:</strong> <?php echo $row->firstname; ?></p>
<p><strong>Surname:</strong> <?php echo $row->surname; ?></p>
<p><strong>Average dinner price:</strong> $<?php echo
$row->avg_dinner_price; ?></p>
<p><strong>Credit cards:</strong> <?php echo
$row->credit_cards; ?></p>
<p><strong>Reservations:</strong> <?php echo
$row->reservations; ?></p>
<p><strong>Smoking:</strong> <?php
if($row->smoking == 0)
{
echo "No";
}
else
{
echo "Yes";
}
?></p>
<p><?php echo $row->review; ?></p>
<p><em>Notes:</em> <?php echo $row->notes; ?></p>
<?php $link = 'index.php?option=' . $option ; ?>
<a href="<?php echo $link; ?>">&lt; return to the reviews</a>
<?php
}
}
?>